<include file="Base/header" />
<div class="page-container">
	<include file="Base/menu" />
	<div class="page-content">
		<div class="container-fluid">
			<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<h3 class="page-title">
						</h3>
						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="#">首页</a>
								<i class="icon-angle-right"></i>
							</li>
							<li><a href="#">权限管理</a></li>
						</ul>
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
			</div>
			<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption"><i class="icon-globe"></i>权限管理</div>
								<div class="tools">
									<a href="javascript:;" class="collapse"></a>
									<a href="javascript:;" class="reload"></a>
									<a href="javascript:;" class="remove"></a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="clearfix">
									<div class="btn-group">
										<a href="{:U('Admin/Access/Add_node')}"><button id="sample_editable_1_new" class="btn green">
										添加节点&nbsp;&nbsp;<i class="icon-plus"></i>
										</button></a>
									</div>
								</div>
							<div class="container-fluid">
							<div id="sample_1_wrapper" class="dataTables_wrapper form-inline" role="grid">
							<foreach name="data" item="v">
								<div style="margin:5px;border-bottom:1px dotted #ccc">
									<button type="button" class="btn btn-primary">{$v['title']}</button>
									<a href="{:U('Admin/Access/Add_node',array('pid'=>$v['id'],'level'=>$v['level'] + 1))}">添加</a>
									<a href="{:U('Admin/Access/del_node',array('id'=>$v['id']))}">删除</a>
								</div>
								<foreach name="v['child']" item="con">
									<div style="margin:5px;border-top:1px solid #555">
										<button type="button" class="btn btn-success">{$con['title']}</button>
										<a href="{:U('Admin/Access/Add_node',array('pid'=>$con['id'],'level'=>$con['level'] + 1))}">添加</a>
										<a href="{:U('Admin/Access/del_node',array('id'=>$con['id']))}">删除</a>
									</div>
									<div style="margin:5px;">
										<foreach name="con['child']" item="act">
											<button type="button" class="btn btn-info" >{$act['title']}</button>
											<a style="margin-right:10px" href="{:U('Admin/Access/del_node',array('id'=>$act['id']))}">删除</a>
										</foreach>
									</div>
									
								</foreach>
							</foreach>
							
						</div>

							</div>
							</div>
						</div>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>
		</div>
	</div>
</div>
<include file="Base/footer" />
